<?php
/* TODO: Add code here */
require('config/globalconfig.php');
?>
<?php
include_once('classes/user_sphinx_search.php');
include_once('classes/user_catalogue.php');
//user_common::writeLog('insert',0);
include_once('classes/user_section.php');
include_once('classes/user_property.php');
include_once('classes/user_faq.php');
include_once('classes/editor.php');
$objSection = new user_section($objConnection);
$objCatalogue = new user_catalogue($objConnection);
$objProperty = new user_property($objConnection);
$objFAQ = new user_faq($objConnection);
if ($_pgR["act"]==user_faq::ACT_GET)//user_common::ACT_ADD_LIKE)//add new record like.php Trường hợp content chưa có like_id
{		
	$object_id= $_pgR["id"];
	$type= $_pgR["type"];
	$intPage= $_pgR["p"];
	
	$strHTML= $objFaq->outputFaqForProductDetail($object_id,$type,$intPage);
	//print_r($arrFaq);
	if($strHTML)
	{
		
		echo user_common::convertToXML($arrHeader, array('rs', 'inf'), 
				array(1, $strHTML), array(0, 1));
		return;	
	}
	else
	{
		echo user_common::convertToXML($arrHeader, array('rs'),array(0),array(0));
		return ;
	}
}

?>